import Vue from 'vue'
import App from './App.vue'
import createRouter from './router'
import Axios from 'axios'
import ElementUI from 'element-ui'
import store from '@/store'
import '@/components/icon'
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/css/reset.css'
const baseUrl = process.env.NODE_ENV === 'development' ? '//www.proexe.cn:8080' : ''
Vue.config.productionTip = false
Axios.interceptors.request.use(config => {
	config = {
		...config,
		url: baseUrl+config.url
	}
	return config
})
Vue.prototype.$axios = Axios
Vue.use(ElementUI)
const router = createRouter()
new Vue({
  render: h => h(App),
	router,
	store
}).$mount('#app')
